package com.example.brisk.job;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * 基础定时任务模板
 */
@Component
public class PrintJob {
    // 执行频率1/min
    @Scheduled(cron = "0 */1 * * * ?")
    public void print(){
        System.out.println("PrintJob execute!");
    }
}
